package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Postskill;
import com.xxgc.eow.entity.Treatment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 企业待遇表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-22
 */
@Mapper
public interface TreatmentMapper extends BaseMapper<Treatment> {
    int insert(Treatment row);

    int delectTreatment(Treatment treatment);

    int updatTreatment(@Param("treatment") Treatment treatment, @Param("oldTreatmentId") int oldTreatmentId);

    List<Treatment> selectAll();

    List<Treatment> selectAllByCompanyId(int companyId);
}
